class Ch2_LinkedList {
	
	public static void main(String[] args){
		Node a = new Node(1);
	}
}

class Node {
	Node next = null;
	int data;
	public Node(int d){
		this.data = d;
	}
	void appendToTail( int d ) {
		Node end = new Node(d);
		Node n = this;
		while( n.next != null ) {
			n = n.next;
		}
		n.next = end;
	}
}